using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;

public class exitManager : MonoBehaviour
{
    // Start is called before the first frame update
    public GameObject exitButton;
    void Awake()
    {
        open_close.canvas_close(exitButton);
    }

    public void exitClick()
    {
        Time.timeScale = 0;
        open_close.canvas_open(exitButton);
    }
    public void XClick()
    {
        Time.timeScale = 1;
        open_close.canvas_close(exitButton);
    }
    public void yes()
    {
        Time.timeScale = 1;
        open_close.canvas_close(exitButton);
        SceneManager.LoadScene(0);
    }
}
